package com.ruoyi.car.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 社区帖子对象 car_community
 * 
 * @author ruoyi
 * @date 2024-04-07
 */
public class CarCommunity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 社区id */
    private Long id;

    /** 发布人 */
    @Excel(name = "发布人")
    private String nickName;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 图片 */
    @Excel(name = "图片")
    private String imgs;

    /** 微信用户id */
    @Excel(name = "微信用户id")
    private Long wxUserId;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String avatarUrl;

    /**
     * 回复列表
     */
    private List<CarCommunityReply> replyList;

    private Boolean needReply;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setImgs(String imgs) 
    {
        this.imgs = imgs;
    }

    public String getImgs() 
    {
        return imgs;
    }
    public void setWxUserId(Long wxUserId) 
    {
        this.wxUserId = wxUserId;
    }

    public Long getWxUserId() 
    {
        return wxUserId;
    }
    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nickName", getNickName())
            .append("content", getContent())
            .append("imgs", getImgs())
            .append("wxUserId", getWxUserId())
            .append("avatarUrl", getAvatarUrl())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }

    public List<CarCommunityReply> getReplyList() {
        return replyList;
    }

    public void setReplyList(List<CarCommunityReply> replyList) {
        this.replyList = replyList;
    }

    public Boolean getNeedReply() {
        return needReply;
    }

    public void setNeedReply(Boolean needReply) {
        this.needReply = needReply;
    }
}
